<?php

namespace App\Admin\Actions\site;

use App\Models\Site;
use Encore\Admin\Actions\RowAction;

class ResetNextTime extends RowAction
{
    public $name = '下次执行清零';

    public function handle(Site $model)
    {
        $model->next_perform_time = date('Y-m-d');
        $model->save();
        return $this->response()->success('成功设置为当日凌晨时间')->refresh();
    }

}
